package com.luhuiguo.contacts.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.Widget;

public class Loading extends PopupPanel {

    private static LoadingUiBinder uiBinder = GWT.create(LoadingUiBinder.class);

    interface LoadingUiBinder extends UiBinder<Widget, Loading> {
    }

    @UiField
    HTML msg;

    public Loading(String loadingMsg) {
        setWidget(uiBinder.createAndBindUi(this));
        msg.setText(loadingMsg);
    }

}
